<ul class="nav partners">
    <?php 
        if(isset($advs) && count($advs) > 0 ) :
            foreach ($advs as $partner) :
            $url_path = $partner->url_path == "#Click vào đây để thay đổi đường dẫn ảnh" ? '#' : $partner->url_path;
            $title = ($partner->title == NULL || $partner->title == 'Title') ? '' : $partner->title;
        ?>
        <li>
            <a href="<?php echo $url_path;?>">
                <img src="/images/advs/<?php echo $partner->image_name;?>" alt="<?php echo $title;?>" title="<?php echo $title;?>"/>
            </a>
        </li>
        <?php 
            endforeach;
        endif;
        ?>
</ul>